// 2025.07.02 21:53:53 星期三 晴 无事

// 链接 postgresSQL 数据库
import { Client } from 'pg';

const pgSQL_url_host = 'localhost';

const pgSQL_url_port = 5432;

const pgSQL_database = 'my_schedule';

const pgSQL_user = 'postgres';

const pgSQL_options = '-c search_path=admin,public';

const pgSQL = new Client({
  user: pgSQL_user,
  host: pgSQL_url_host,
  port: pgSQL_url_port,
  database: pgSQL_database,
  options: pgSQL_options,
});

pgSQL.connect();

export { pgSQL };
